package com.symone.webcms.model;



import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统用户组
 * </p>
 *
 * @author ArcherChu
 * @since 2018-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_role_table")
@ApiModel(value="系统用户组")
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "ID",example = "12")
     @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户组名
     */
    @ApiModelProperty(value="用户组名")
    private String name;
    /**
     * 用户组代码
     */
    @ApiModelProperty(value="用户组代码")
    private String code;
    /**
     * 描述
     */
    @ApiModelProperty(value="描述")
      private String description;
    /**
     * 删除标志
     */
    @ApiModelProperty(value="删除标志")
      private Integer deleted;
    @TableField(value = "create_time")
    private Date createTime;
    @TableField(value = "update_time")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
            return this.id;
    }

}